#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""DocString

DocString Paragraph

"""

from classes.cfg_loader import *
from classes.module_loader import *
import os.path

import logging
import logging.config
logging.config.fileConfig('conf/logging.cfg')
logger = logging.getLogger('main')


path = './conf/basic.cfg'
if os.path.exists(path):
    basic_cfg = Basic_cfg_loader(path)
    logger.info("Hola")   
    print(basic_cfg)
    modules_cfg = Basic_cfg_loader(basic_cfg.get_parser_load_cfg().get('modules','path'))
    
    print(modules_cfg)
    Module_loader(modules_cfg.load_cfg())

else:
    print('El fichero no existe')

for module in sorted(sys.modules):
    print(module)

__version__ = "$Revision$"
# $Source$

